package org.openinsula.vulcano.orm.dao.query;

import java.util.Arrays;
import java.util.List;

public class PropertiesDaoQuery<T> extends DaoQuery<T> {

	private static final long serialVersionUID = 1L;

	private List<String> propertyNames;

	public PropertiesDaoQuery(final Class<?> queryClass, String... propertyNames) {
		super(queryClass);
		this.propertyNames = Arrays.asList(propertyNames);
	}

	@Override
	public <V> V accept(DaoQueryVisitor<V> visitor) {
		return visitor.visit(this);
	}

	public List<String> getPropertyNames() {
		return propertyNames;
	}

}
